package org.dromara.system.pojo.bo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.dromara.common.web.core.domain.BaseBO;

import java.io.Serial;
import java.time.LocalDateTime;

/**
 * 操作日志记录 BO。
 *
 * @author mkj
 * @since 2024-07-20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "操作日志记录")
public class SysOperateLogBO extends BaseBO {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "日志主键")
    private Long id;

    @Schema(description = "方法名称")
    private String method;

    @Schema(description = "模块标题")
    private String methodTitle;

    @Schema(description = "请求方式")
    private String requestMethod;

    @Schema(description = "业务类型（0其它 1新增 2修改 3删除）")
    private Integer businessType;

    @Schema(description = "客户端编码")
    private String operateDevice;

    @Schema(description = "操作人员")
    private String operateName;

    @Schema(description = "部门名称")
    private String deptName;

    @Schema(description = "请求URL")
    private String operateUrl;

    @Schema(description = "主机地址")
    private String operateIp;

    @Schema(description = "操作地点")
    private String operateLocation;

    @Schema(description = "请求参数")
    private String operateParam;

    @Schema(description = "返回参数")
    private String jsonResult;

    @Schema(description = "是否操作成功（Y是 N否）")
    private String isSuccessful;

    @Schema(description = "错误消息")
    private String errorMsg;

    @Schema(description = "操作时间")
    private LocalDateTime operateTime;

    @Schema(description = "消耗时间")
    private Long costTime;
}
